package ControlLayer;

import ModelLayer.*;
/**
 * Write a description of class LoanControls here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class LoanControls
{
    private LoanContainer loanCont;
    
    public LoanControls()
    {
        loanCont = LoanContainer.getInstance();
    }
    
    public void startLoans(String loanID, String borrowDate, String personID, String serialNumber)
    {
        Loan loanObject = new Loan(loanID, borrowDate, personID, serialNumber);
        loanCont.addLoans(loanObject);
    }
    
    public String startLoanResult()
    {
        return loanCont.startResult();
    }
    
    public void endLoans(String loanID, String currentDate)
    {
        loanCont.endLoans(loanID, currentDate);
    }
    
    public String finishLoanResult()
    {
        return loanCont.finishResult();
    }
    
    public String showLoans(String loanID)
    {
        return loanCont.showLoans(loanID);
    }
}
